import Cookies from 'js-cookie'

const tokenKey = 'tpsix_token'
const tenantKey = 'TENANT_ID'

export function getToken() {
  return Cookies.get(tokenKey)
}

export function setToken(token) {
  return Cookies.set(tokenKey, token)
}

export function getTenant() {
  return Cookies.get(tenantKey)
}

export function setTenant(tenant) {
  return Cookies.set(tenantKey, tenant)
}

export function removeToken() {
  return Cookies.remove(tokenKey)
}
